package test;
import java.util.Date;
import org.junit.Test;
import hyl.core.MyDate;
import hyl.core.MyFun;
import hyl.core.fun.MyString;

public class demoFun {
	public static void main(String[] args) {
		// DecimalFormat df = new DecimalFormat("#,##0.00");
		// long testNumber =3L;
		// System.out.println(" After is\t" + df.format(1.0*testNumber/100));
		// System.out.println( MyString.filter("xccv%&333vb //撒旦法_"));
		Long d = 9999999999000L;
		//1569221483538
		//9999999999000L
		//if (d<9999999999)
		//System.out.println();
		Date d1 = MyFun.Long2Date(d);
		System.out.println(MyDate.getNow().getTime());
		System.out.println(MyFun.date2Str(d1));
		System.out.println(d1.getTime());
		System.out.println(MyFun.str2Date("1970-01-01 08:00:01").getTime());
	}

	//@Test
	public  void testfun1() {
		Integer[] aa=new Integer [4];
		System.out.println(MyString.join(',','\'',aa)); 
	}
	@Test
	public  void testfun2() {	
		System.out.println(10^3);
		MyFun.print("1000.2344",MyFun.numToInt100(1000.2344));
		MyFun.print("1000.2344",MyFun.numToInt(1000.2344,3));
		MyFun.print("1000.2344",MyFun.numToInt(1000.2344,-1));
		MyFun.print("1000.2344",MyFun.numToLong1000(1000.2344));
		MyFun.print("1000.2344",MyFun.numToLong(1000.2344,4));
		MyFun.print("1000.2344",MyFun.numToLong(1000.2344,-2));
	}
}
